<!DOCTYPE html>
<html>
<head>
  <meta charset="UTF-8">
  <title>快速收藏</title>
  <link rel="stylesheet" href="popup.css">
</head>
<body>
  <div class="container">
    <div class="header">
      <img src="images/icon.svg" alt="快速收藏" class="logo" id="logo">
      <h1>快速收藏</h1>
    </div>
    
    <!-- 登录界面 -->
    <div id="loginSection" class="login-section">
      <h2>请先登录</h2>
      <div class="login-form">
        <input type="text" id="username" placeholder="用户名" class="login-input">
        <input type="password" id="password" placeholder="密码" class="login-input">
        <button id="loginBtn" class="btn primary">登录</button>
        <button id="registerBtn" class="btn secondary">注册</button>
      </div>
      <div id="loginStatus" class="status"></div>
    </div>
    
    <!-- 已登录界面 -->
    <div id="mainSection" class="main-section" style="display: none;">
      <div class="user-info">
        <button id="bookmarkBtn" class="btn bookmark">收藏</button>
        <span id="userWelcome">欢迎，用户</span>
        <button id="logoutBtn" class="btn logout">退出</button>
      </div>
      
      <!-- <div class="actions">
        <button id="bookmarkBtn" class="btn primary">收藏当前页面</button>
        <button id="viewBtn" class="btn secondary">查看收藏</button>
      </div> -->
      
      <div id="status" class="status"></div>
      
      <!-- 标签页切换 -->
      <div class="tabs">
        <button id="tabBookmarks" class="tab-btn active">最近收藏</button>
        <button id="tabClosedTabs" class="tab-btn">最近关闭</button>
      </div>
      
      <!-- 收藏标签页 -->
      <div id="tabBookmarksContent" class="tab-content active">
        <div id="bookmarksList" class="bookmarks-list">
          <ul id="recentBookmarks"></ul>
        </div>
      </div>
      
      <!-- 最近关闭标签页 -->
      <div id="tabClosedTabsContent" class="tab-content">
        <div class="closed-tabs-list">
          <ul id="recentClosedTabs"></ul>
        </div>
      </div>
    </div>
  </div>
  <script src="popup.js"></script>
</body>
</html>